package priv.stones.io.Scanner.file;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

/**
 * @Author: Stones
 * @Description:
 * @Date: 2017/9/27 14:59
 */
public class InPutStream1 {

    public static void main(String[] args) throws IOException {
        File file = new File("e:" + File.separator + "hello" + File.separator + "1.txt");
        InputStream is = new FileInputStream(file);
        byte[] temp = new byte[1024];
        is.read(temp);
//        int aaa;
//        int foot = 0;
//        while ((aaa = is.read()) != -1) {
//            temp[foot++] = (byte) aaa;
//        }
        System.out.println("【" + new java.lang.String(temp) + "】");

    }

}
